<?php
	include_once('../sys/sys.php');
	include_once('dm5.php');
	header('Content-Type: text/html; charset=utf-8');
	
	echo "删除为空的<BR>";
	
	$result = $DB->build_and_exec_query(
			array('delete' => 'dm5tags_setting','where'	=> "num=0 ",)
		);	
	echo '处理完毕<BR>';
	
	echo "删除没名字的<BR>";
	$result = $DB->build_and_exec_query(
			array('delete' => 'dm5photos','where'	=> "tid in(select tid from testdm5tags_setting where name='') ",)
		);
	$result = $DB->build_and_exec_query(
			array('delete' => 'dm5tags_setting','where'	=> "name='' ",)
		);

?>